/**
 * SDL Compositor
 *
 * Part of the Kore2 Framework
 */

#include "../kore2.h"


kore::sdl::Compositor::Compositor()
{
	int fw = 640;
	int fh = 480;
	this->m_surface = SDL_CreateRGBSurface(SDL_HWSURFACE, fw, fh, 32, 0, 0, 0, 0);

}

kore::sdl::Compositor::~Compositor()
{


}

int kore::sdl::Compositor::addLayer(SdlSurface* surface)
{
	this->layers.push_back(surface);
	return this->layers.size();
}

int kore::sdl::Compositor::addLayer(SDL_Surface* surface)
{
	this->layers.push_back(new kore::sdl::SdlSurface(surface));
	return this->layers.size();
}

void kore::sdl::Compositor::refresh(SDL_Surface* surface)
{

}